package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.example.demo.mapper")   //扫描mapper接口
public class DemoApplication /*implements CommandLineRunner*/ {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }


    //启动加载 实现CommandLineRunner接口 重写run方法
//    @Override
//    public void run(String... args) throws Exception {
//        for(int i=0;i<10;i++){
//            System.out.println("我是"+i);
//        }
//    }
}
